package abstract_factory;

import abstract_factory.factorys.MailProvider;
import abstract_factory.factorys.Provider;
import abstract_factory.factorys.SmsProvider;
import abstract_factory.products.Sender;

/**
 * @Author: 80305082
 * @Date: 2021/3/22
 * @Description:
 */
public class Test {
    public static void main(String[] args) {
        Provider provider = new SmsProvider();
        Sender sender = provider.provide();
        sender.send();

        System.out.println("========================");
        provider = new MailProvider();
        sender = provider.provide();
        sender.send();
    }
}
